﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Demo01
{
    public partial class XinWen : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Label4.Text = DateTime.Now.ToString();
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            
            Label5.Text = "此新闻来自" + DropDownList1.Text + "谢谢您的新闻";
            if (this.TextBox2.Text == "")
            {
                Label5.Text = "请输入新闻内容";
            }
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            this.TextBox2.Text = "";
        }
    }
}